package src.lab02.test35;

/**
 * Created by Administrator on 2017/11/18.
 */
//则按他每月工作的天数计算工资
public class Worker extends Employee{

    int days;
    double dailySalar;

    Worker(String name,int days,double dailySalar) {
        super(name);
        this.days=days;
        this.dailySalar=dailySalar;
    }

    @Override
    double computeSalary() {
        return dailySalar*days;
    }
}
